#!/bin/sh

for cmd in mupdf-gl mupdf-x11-curl mupdf-x11; do
	if [ -x /usr/bin/$cmd ]; then
		exec /usr/bin/$cmd "$@"
	fi
done

echo 'mupdf: no viewer found' >&2
exit 1
